#include "Unit.h"


CUnit::CUnit(State state)
: health(0)
, damage(0)
, detRadius(0)
, speed(0)
, active(false)
, state(S_ZERO)
, pos(Vector3D(0, 0, 0))
{

}

CUnit::~CUnit()
{

}

int CUnit::GetHealth(void)
{
	return health;
}

int CUnit::GetDamage(void)
{
	return damage;
}

int CUnit::GetDetRadius(void)
{
	return detRadius;
}

int CUnit::GetSpeed(void)
{
	return speed;
}

bool CUnit::GetActive(void)
{
	return active;
}

Vector3D CUnit::GetPos(void)
{
	return pos;
}

void CUnit::SetHealth(int health)
{
	this->health = health;
}

void CUnit::SetDamage(int damage)
{
	this->damage = damage;
}

void CUnit::SetDetRadius(int detRadius)
{
	this->detRadius = detRadius;
}

void CUnit::SetSpeed(int speed)
{
	this->speed = speed;
}

void CUnit::SetActive(bool active)
{
	this->active = active;
}

void CUnit::SetPos(Vector3D pos)
{
	this->pos = pos;
}